home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 844 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.1 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: abell@mindspring.com (Andrew Bell)
  3. Newsgroups: comp.std.c++
  4. Subject: Quick questions
  5. Date: 25 Mar 1996 10:07:29 PST
  6. Organization: MindSpring Enterprises
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4j5b26$1e7a@mule1.mindspring.com>
  9. NNTP-Posting-Host: isolde.mti.sgi.com
  10. X-Original-Date: Mon, 25 Mar 1996 05:33:18 GMT
  11. X-Newsreader: Forte Agent .99.82
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBVAwUBMVbg8Uy4NqrwXLNJAQFYlQH/Z+SlC2xOUbaKixzUVrNXny4syRe57NKT
  14.     +8tqAw5/3pgrzCoPgBpAr/R3krlrlfimqRhF9sGYYiUQHdtZMqcUJw==
  15.     =tvou
  16. Originator: austern@isolde.mti.sgi.com
  17.  
  18. Hopefully these will have short answers, and aren't inappropriate for
  19. the newsgroup.
  20.  
  21. 1) Is there any way to catch an exception thrown in the constructor of
  22. a statically constructed object?  Does it call unexpected() or
  23. terminate() even?
  24.  
  25. 2) From a previous post on this group, it looks like the standard will
  26. allow one to define conversion operators for pre-existing, source code
  27. untouchable data types.  Yes? No? What will this look like? I have the
  28. May copy of the WP, and don't see any mention of this.
  29.  
  30. 3) I often write what I call "pure wrapper" classes to give access
  31. protection and data abstraction to pre-existing data types.  A pure
  32. wrapper class is a class that adds no member variables or virtual
  33. member functions to a class/struct that has no virtual functions of
  34. its own, so their size and alignment should be the same and casting
  35. between the two should be perfectly safe.  The new standard doesn't
  36. have any special support (for example, allowing it automatically) for
  37. this, does it?
  38.  
  39. 4) With RTTI, a derived class that doesn't change any virtual member
  40. funcs or add any properties to a base class still evaluates to a
  41. different object type, correct?
  42.  
  43. Thanks for any and all answers.
  44.  
  45. Andrew Bell
  46. abell@mindspring.com
  47. ---
  48. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  49.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  50.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  51.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  52.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  53. ]
  54.